/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gameSpot;

import java.util.ArrayList;
import java.util.Iterator;

/**
 *
 * @author Hector
 */
public class ModeloReview {
    
    private String tittle;
    private String author;
    private String pubdate;
    private String platform;
    private String body;
    private ArrayList<ModeloComment> comments;
    private String score;
    private String Likes;
    private String Tweet;
    private String Plus;
    private String numberComments;
    private String peopleListening;
    private String metacriticScore;
    private String userScore;
    
    public void print(){
        System.out.println("Titulo: "+this.tittle);
        System.out.println("Autor: "+this.author);
        System.out.println("Fecha: "+this.pubdate);
        System.out.println("Plataforma: "+this.platform);
        System.out.println("Score: "+this.score);
        System.out.println("User score: "+this.userScore);
        System.out.println("Metacritic score: "+this.metacriticScore);
        System.out.println("Likes: "+this.Likes);
        System.out.println("Tweets: "+this.Tweet);
        System.out.println("+1: "+this.Plus);
        System.out.println("Body: "+this.body);
        System.out.println("Personas escuchando: "+this.peopleListening);
        System.out.println("N° Comentarios: "+this.numberComments);
        if(this.comments.isEmpty()) System.out.println("--Sin comentarios--");
        else{
            System.out.println("--Comentarios--");
            for (Iterator<ModeloComment> it = this.comments.iterator(); it.hasNext();) {
                ModeloComment modeloComment = it.next();
                System.out.println("--Comentarios--");
                System.out.println("Usuario: "+modeloComment.getUser());
                System.out.println("Rating: "+modeloComment.getRatingUser());
                System.out.println("Body: "+modeloComment.getBody());
            }
            System.out.println("--Fin comentarios--");
        }
    }
    
    public ModeloReview() {
        this.tittle = "";
        this.pubdate = "";
        this.platform = "";
        this.body = "";
        this.comments = new ArrayList<ModeloComment>();
        this.score = "";
        this.Likes = "";
        this.Tweet = "";
        this.Plus = "";
        this.numberComments ="";
        this.peopleListening = "";
        this.metacriticScore = "";
        this.userScore = "";
    }

    public ModeloReview(String tittle, String author, String pubdate, String platform, String body, ArrayList<ModeloComment> comments, String score, String Likes, String Tweet, String Plus, String numberComments, String peopleListening, String metacriticScore, String userScore) {
        this.tittle = tittle;
        this.author = author;
        this.pubdate = pubdate;
        this.platform = platform;
        this.body = body;
        this.comments = comments;
        this.score = score;
        this.Likes = Likes;
        this.Tweet = Tweet;
        this.Plus = Plus;
        this.numberComments = numberComments;
        this.peopleListening = peopleListening;
        this.metacriticScore = metacriticScore;
        this.userScore = userScore;
    }
    
    public String getBody() {
        return body;
    }
    public void setBody(String body) {
        this.body = body;
    }
    public ArrayList<ModeloComment> getComments() {
        return comments;
    }
    public void setComments(ArrayList<ModeloComment> comments) {
        this.comments = comments;
    }
    public String getPlatform() {
        return platform;
    }
    public void setPlatform(String platform) {
        this.platform = platform;
    }
    public String getPubdate() {
        return pubdate;
    }
    public void setPubdate(String pubdate) {
        this.pubdate = pubdate;
    }
    public String getScore() {
        return score;
    }
    public void setScore(String score) {
        this.score = score;
    }
    public String getTittle() {
        return tittle;
    }
    public void setTittle(String tittle) {
        this.tittle = tittle;
    }
    public String getLikes() {
        return Likes;
    }
    public void setLikes(String Likes) {
        this.Likes = Likes;
    }
    public String getPlus() {
        return Plus;
    }
    public void setPlus(String Plus) {
        this.Plus = Plus;
    }
    public String getTweet() {
        return Tweet;
    }
    public void setTweet(String Tweet) {
        this.Tweet = Tweet;
    }
    public String getMetacriticScore() {
        return metacriticScore;
    }
    public void setMetacriticScore(String metacriticScore) {
        this.metacriticScore = metacriticScore;
    }
    public String getNumberComments() {
        return numberComments;
    }
    public void setNumberComments(String numberComments) {
        this.numberComments = numberComments;
    }
    public String getPeopleListening() {
        return peopleListening;
    }
    public void setPeopleListening(String peopleListening) {
        this.peopleListening = peopleListening;
    }
    public String getUserScore() {
        return userScore;
    }
    public void setUserScore(String userScore) {
        this.userScore = userScore;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
}
